de22d8166ea89483a6095b4973faf7de6c45a295
[motion2.git] /
1 <md-input-container>
2   <div
3     layout="{{CheckboxesView.formItem.config.direction == 'horizontal' ? 'row' : 'column'}}"
4   >
5     <md-checkbox
6       ng-repeat="option in CheckboxesView.formItem.options track by $index"
7       ng-model="option.selected"
8       ng-change="CheckboxesView.toggleSelectedOption(option)"
9       ng-disabled="CheckboxesView.disableOptions && !option.selected"
10       aria-label="..."
11       >{{option.value}}</md-checkbox
12     >
13   </div>
14
15   <div ng-messages="CheckboxesView.form.$error">
16     <div ng-message="minSelections">
17       Must select {{CheckboxesView.formItem.maxSelections || 1}} items
18     </div>
19   </div>
20 </md-input-container>